home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
STRPPTOL.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
382b
|
21 lines
// STRPPTOL.CPP - contains String::toLower()
// convert a string to lower case.
#include <stdlib.h>
#include <string.h>
#include <alloc.h>
#include <iostream.h>
#include <ctype.h>
#include "dblib.h"
void String::toLower()
{
int sn =n;
char *ss =s;
if ( ss != NULL )
for (int i=0; i<sn; ++i) ss[i] = tolower(ss[i]);
} // end String::toLower()